package com.zmxstudy.rbac.controller;

import com.zmxstudy.rbac.base.BaseController;
import com.zmxstudy.rbac.entity.Slot;
import com.zmxstudy.rbac.service.SlotService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

/**
 * @Author:tianyu
 * @Date:2024-05-27 15:59
 */
@RestController
@RequestMapping("/slot")
public class SlotController extends BaseController<SlotService, Slot> {
    @RequestMapping("/getBannerList")
    public ArrayList<Slot> getBannerList(){
        return baseService.getBannerList();
    }

    @RequestMapping("/getFanList")
    public ArrayList<Slot> getFanList() {
        return baseService.getFanList();
    }

    @RequestMapping("/getProcessList")
    public ArrayList<Slot> getProcessList() {
        return baseService.getProcessList();
    }

    @RequestMapping("/getFriendsList")
    public ArrayList<Slot> getFriendsList() {
        return baseService.getFriendsList();
    }
}
